package com.example.blog.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.blog.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author generator@xxx
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ad")
public class Ad extends BaseEntity {


    /**
     * 广告id
     */
    @TableId(value = "ad_id", type = IdType.AUTO)
    private String adId;

    /**
     * 广告标题
     */
    private String adTitle;

    /**
     * 广告的url地址
     */
    private String adUrl;

    /**
     * 广告排序
     */
    private Integer adSort;

    /**
     * 广告类型
     */
    private String adTypeId;

    /**
     * 广告开始时间
     */
    private LocalDateTime adBeginTime;

    /**
     * 广告结束时间
     */
    private LocalDateTime adEndTime;

    /**
     * 增加广告的时间
     */
    private LocalDateTime adAddTime;


}
